FROM openjdk:8-jdk-alpine
MAINTAINER shop<springboot@shop.com>
WORKDIR /home/server/ruoyi-admin
RUN echo "Asia/Shanghai" > /etc/timezone
#RUN apk add --no-cache tini
#ENTRYPOINT ["/sbin/tini", "--"]
RUN apk add --update font-adobe-100dpi ttf-dejavu fontconfig
ADD /usr/tmp/ruoyi-service/ruoyi-admin/target/ruoyi-admin.jar ruoyi-admin.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=prod", "-jar", "ruoyi-admin.jar"]